<%@ Import Namespace="System.Data" %>
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<script type="text/C#" runat="server">
    private static IEnumerable<SelectListItem> Isolations()
    {
        var s = new List<SelectListItem>();
        foreach (IsolationLevel isolation in Enum.GetValues(typeof(IsolationLevel)))
        {
            s.Add(new SelectListItem() { Text = isolation.ToString(), Value = Convert.ToInt32(isolation).ToString() });
        }
        return s;
    }
</script>
<div class="cssform">
<p>
    <label>
        Timeout:</label>
    <input id="timeout" type="text" />
</p>
<p>
    <label for="ShowSql">
        Show Sql:</label>
    <input id="ShowSql" type="checkbox" />
</p>
<p>
    <label for="UseOuterJoin">
        UseOuterJoin:</label>
    <input id="UseOuterJoin" type="checkbox" />
</p>
<p>
    <label>
        Isolation:</label>
    <%=Html.DropDownList("DropDownlistListIsolation", Isolations())%>
</p>
<p>
    <label>
        BatchSize:</label>
    <input id="batchSize" type="text" />
</p>
</div>